import mongoose from 'mongoose'
// 生成Schema模型
const Schema = mongoose.Schema
const inspectionSchema = new Schema({
  inspector: {
    type: String
  },
  tower: {
    type: String
  },
  dorm: {
    type: String
  },
  class: {
    type: String
  },
  hygiene: {
    type: String
  },
  culture: {
    type: String
  },
  score: {
    type: String
  },
  time: {
    type: String
  },
  desc: {
    type: String
  },
  date: {
    type: Date,
    default: Date.now
  }
})

export default mongoose.model('inspection', inspectionSchema, 'inspection')
